Skip to content

fix(db): fail on Drizzle Kit 1.0 migration folders instead of skipping them - #962

Merged
cpojer merged 2 commits into
mainfrom
fix/db-migrate-nested-folders
Nov 28, 2026
Merged

cpojer merged 2 commits into
mainfrom
fix/db-migrate-nested-folders

Conversation

@hyfdev

@hyfdev hyfdev commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

Drizzle Kit 1.0 writes each migration to its own <timestamp>_<name>/migration.sql folder.

void db migrate only read top-level .sql files, so it printed "All migrations are up to date" and created nothing, on D1 and Postgres.

void db seed then failed on the missing tables.

Now migrate, status, seed and reset stop with an error that names the folder:

db: Unsupported nested migration folder '<folder>'. Void migrations use flat .sql files from drizzle-kit 0.x.

Flat migrations and Kit 0.x's meta/ folder work as before.

Refs #926

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview URL: https://fix-db-migrate-nested-folders-void-cloud.voidzero-docs.workers.dev (commit f829916)

This URL reflects your latest Preview deployment

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://6e31c7f9-void-cloud.voidzero-docs.workers.dev f829916 2026-11-28T11:03:08.378Z Visit the dashboard ↗
  • Build: Success ✅
  • Deployment: Success ✅

View logs ↗
https://0e4c898e-void-cloud.voidzero-docs.workers.dev d1128cd 2026-11-28T10:36:41.706Z Visit the dashboard ↗

@hyfdev
hyfdev marked this pull request as ready for review November 28, 2026 10:48
Copilot AI balanced review requested due to automatic review settings November 28, 2026 10:48

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing. Review the Copilot code review billing settings.

@cpojer cpojer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice fix!

@cpojer
cpojer merged commit 7b678ca into main Nov 28, 2026
22 checks passed
@cpojer
cpojer deleted the fix/db-migrate-nested-folders branch November 28, 2026 11:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants